﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace LMS.DocumentConvertService
{
    public partial class MainService : ServiceBase
    {
        private readonly ServiceHandle handler;
        public MainService()
        {
            InitializeComponent();
            handler = new ServiceHandle();
        }

        protected override void OnStart(string[] args)
        {
            handler.Start();
        }

        protected override void OnStop()
        {
            handler.Stop();
        }
    }
}
